Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Body Class and Ignore Class #143

Merged
merged 3 commits into from
Sep 15, 2017
Merged

Add Body Class and Ignore Class #143

merged 3 commits into from
Sep 15, 2017

Conversation

davidhellmann
Copy link
Contributor

Hey, here is a new Pull Request. Now you can see it better I hope :)
Sorry for the late response!

@feimosi
Copy link
Owner

feimosi commented Jan 31, 2017

No problem, thanks! There are a few linter errors, could you take a look?
https://travis-ci.org/feimosi/baguetteBox.js/jobs/195095908#L188

@XhmikosR
Copy link
Contributor

@feimosi: just fix them yourself and push to @davidhellmann fork and then just squash + merge.

@feimosi
Copy link
Owner

feimosi commented Sep 15, 2017

I can't push to other's forks without some extra permission, can I?

@XhmikosR
Copy link
Contributor

XhmikosR commented Sep 15, 2017 via email

@feimosi
Copy link
Owner

feimosi commented Sep 15, 2017

@XhmikosR Interesting, thanks! :)

@feimosi feimosi merged commit f3a6cfc into feimosi:dev Sep 15, 2017
@XhmikosR
Copy link
Contributor

@feimosi: I replied via email but you probably missed it.

Now regarding this PR... are you sure all supported browsers have classList support?
We should add ESLint plugin compat to automate this.

@feimosi
Copy link
Owner

feimosi commented Sep 16, 2017

@XhmikosR I didn't get that message.
Anyway, I've added an extra check for classList support here:
https://github.com/feimosi/baguetteBox.js/pull/143/files#diff-4634650f8cf2cdceb34291a9bcf4c23fR472

I'll test test thoroughly before the next release too.

@XhmikosR
Copy link
Contributor

@feimosi: I wouldn't personally go with that. If you still want to support < IE 9 you should do this https://plainjs.com/javascript/attributes/adding-removing-and-testing-for-classes-9/

@feimosi
Copy link
Owner

feimosi commented Sep 16, 2017

Sure, it works only in newer IE, but using this option won't break anything, so I don't see any hazard here. Treat it as progressive enhancement, I just need to mention that in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants